package src.main.StructuralPatterns.Bridge;


public class AdvanceRemote extends RemoteControl {
    public AdvanceRemote(Device device) {
        super(device);
    }

    @Override
    public void channelUp() {
        device.setChannel(device.getChannel() + 1);
    }

    @Override
    public void channelDown() {
        device.setChannel(device.getChannel() - 1);
    }

    @Override
    public void volumeUp() {
        device.setVolume(device.getVolume() + 1);
    }

    @Override
    public void volumeDown() {
        device.setVolume(device.getVolume() - 1);
    }

    void mute() {
        device.setVolume(0);
    }
}
